import { Injectable } from '@angular/core';
import { Observable } from 'rxjs';
import 'rxjs';
import { Http } from '@angular/http';
import { HttpClient } from '@angular/common/http';

@Injectable()
export class SysUserServiceService {

  constructor(
    // private _http: Http
    private _http: HttpClient
  ) { }

  getAll() {
    // return this._http.get("http://127.0.0.1:9999/dev/user/findAll") // Http方式获取数据
    //           .map(
    //             resp => resp.json()
    //           );
    return this._http.get("http://127.0.0.1:9999/dev/user/findAll"); // HttpClient方式获取数据
              
  }

}
